package com.shop.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shop
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GoodsTb  implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 商品描述
     */
    private String goodsDescribe;

    private String goodsName;

    /**
     * 种类id
     */
    private Integer specieId;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 上架时间
     */
    private LocalDate shelvesDate;

    /**
     * 下架时间
     */
    private LocalDate soldOuDatet;

    /**
     * 收藏数量
     */
    private Integer collectNum;

    /**
     * 描述url
     */
    private String consultImgUrl;

    /**
     * 属性id
     */
    private String attributesId;

    /**
     * 商品描述的id的集合（逗号隔开）
     */
    private Integer describeImgId;




    @Override
    public String toString() {
        return "GoodsTb{" +
                "goodsId=" + goodsId +
                ", goodsDescribe='" + goodsDescribe + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", specieId=" + specieId +
                ", price=" + price +
                ", shelvesDate=" + shelvesDate +
                ", soldOuDatet=" + soldOuDatet +
                ", collectNum=" + collectNum +
                ", consultImgUrl='" + consultImgUrl + '\'' +
                ", attributesId='" + attributesId + '\'' +
                ", describeImgId=" + describeImgId +
                '}';
    }

}
